import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { store, key } from './store'
import { useAntd } from './plugins/ant-design-vue'
import api from './api'

const app = createApp(App)
  .use(router)
  .use(store, key) // vuex

  useAntd(app)
app.mount('#app')

//全局挂载 Api接口
app.config.globalProperties.$api = api